package com.xiaoq.ar.repository;

import com.xiaoq.ar.entity.ARActivityEntity;

import java.util.List;

/**
 * Created by chenjh on 2018/3/5.
 */
public interface ARActivityRepository {

    boolean save(ARActivityEntity entity);

    /**
     *
     * @param id 主键
     * @return
     */
    ARActivityEntity getByPrimaryId(String id);

    /**
     *  活动提供方查询
     * @param providerId 景区id
     * @return
     */
    List<ARActivityEntity> getByProviderId(String providerId);

    /**
     *  活动提供方查询,得到最近的一次活动
     * @param providerId 景区id
     * @return
     */
    ARActivityEntity getLatestByProviderId(String providerId);

}
